package pojo.entity;

import java.io.IOException;
import java.io.Serializable;

public class Person extends BaseClass implements Serializable {
    private String name;
    static final int age=30;
    protected String address;
    public String message;

    public Person() {
    }
    public Person(String name) {
        this.name=name;
    }

    private Person(String name, String address, String message) {
        this.name = name;
        this.address = address;
        this.message = message;
    }

    private static void silentMethod() throws IOException,NullPointerException{
        System.out.println("这是悄悄话");
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

   public static final int getAge(){
        return age;
   }

    public String toString() {
        return "Person{name = " + name + ", age = " + age + ", address = " + address + ", message = " + message + "}";
    }
}
